﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Text;

namespace IOP.Pulsar.Abstractions
{
    /// <summary>
    /// 启动接口
    /// </summary>
    public interface IStartup
    {
        /// <summary>
        /// 配置服务
        /// </summary>
        /// <param name="services"></param>
        void ConfigureServices(IServiceCollection services);

        /// <summary>
        /// 构建函数
        /// </summary>
        /// <param name="server"></param>
        /// <param name="env"></param>
        void Configure(IServerBuilder server, IHostEnvironment env);
    }
}
